"""
此文件研究的是内置函数 globals locals
"""
# name = 'alex'
# l1 = [1, 2, 3]
#
# def func():
#     age = '18'
#
# print(globals()) # 全局作用域所有的内容
# print(locals())  # 当前位置


# name = 'alex'
# l1 = [1, 2, 3]

# def func():
#     age = '18'
#     oldboy = '老男孩教育'
#     print(globals()) # 全局作用域所有的内容
#     print(locals())  # 当前位置的变量与值的对应关系
#
# func()

# name = 'alex'
# l1 = [1, 2, 3]
#
# def func():
#     age = '18'
#     oldboy = '老男孩教育'
#     def inner():
#         name_class = 'python23期'
#         print(globals()) # 全局作用域所有的内容
#         print(locals())  # 当前位置的变量与值的对应关系
#     inner()
# func()